package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.Energy;
import com.ruoyi.common.core.domain.entity.EnergyRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author：liyouxin
 * @date：2023/11/19 21:55
 */
public interface EnergyRecordMapper {
	public EnergyRecord selectById(Long id);
	public List<EnergyRecord> selectList(EnergyRecord energyRecord);
	public int insert(EnergyRecord energyRecord);
	public int update(EnergyRecord energyRecord);
	public int deleteById(Long id);

	Integer getAmountByArea(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("area") String area,
						@Param("location") String location, @Param("type") String type);
}
